package entity;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;




@Entity
@Table(name="Telefonos")
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public class Telefono {
	
	@EmbeddedId	
	private TelefonoID nro;
	
	
	public Telefono() {}
	

	public Telefono(TelefonoID nro) {
		this.nro = nro;
	}

	public TelefonoID getNro() {
		return nro;
	}

	public void setNro(TelefonoID nro) {
		this.nro = nro;
	}
	
	

}
